Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 19, 2026 12:50
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@nxrighthere
nxrighthere / Unreal-AgX-Tonemapper.usf
Last active February 19, 2026 12:47
AgX tonemapping for Unreal Engine 5
// See image comparison https://imgur.com/a/9L2P7GJ
// Read details https://iolite-engine.com/blog_posts/minimal_agx_implementation
// Usage:
// 1. Open "Project Settings" and change "Working Color Space" to "sRGB / Rec709"
// 2. Open `Engine\Shaders\Private\PostProcessTonemap.usf` file
// 3. Find `half3 OutDeviceColor = ColorLookupTable(FinalLinearColor);` line
// 4. Replace it with `half3 OutDeviceColor = ApplyAgX(FinalLinearColor);` line
// 5. Find `half3 ColorLookupTable( half3 LinearColor )` function
// 6. After the scope of the function, add the code below and run `RecompileShaders Changed` from console
@emschwartz
emschwartz / README.md
Last active February 19, 2026 12:46
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@youtux
youtux / 00-README.md
Last active February 19, 2026 12:46
Pycharm debugger performance fixes

PyDevd PEP 669 Performance Fixes - Bug Report

Executive Summary

This document describes critical performance bugs in PyCharm's pydevd_pep_669_tracing.py that cause 11-156x slowdown when debugging Python code, even when no breakpoints are set in the executing code. The fixes improve performance from 4.34 seconds to 0.28 seconds for a test script that calls a simple function 10 million times.

Impact

  • Before: 4.34 seconds (no breakpoints) / 43.06 seconds (with module-level breakpoint)
  • After: 0.277 seconds (no breakpoints) / 0.276 seconds (with module-level breakpoint)
  • Speedup: 15x faster (no breakpoints), 156x faster (module-level breakpoint)
@bullishpip
bullishpip / claude-code-vscode-sidebar-setup.md
Last active February 19, 2026 12:45
Adding Claude-Code Visual Studio Code extension to Chat Panel

How to Configure Claude Code Extension in Visual Studio Code Side Panel

Last Updated: October 7, 2025
Extension Version Tested: Claude Code for VS Code v2.0.10

This guide will help you set up the Claude Code extension in Visual Studio Code's side panel for easy access. You can also use this process for other chat extentions like Codex.

Prerequisites